<?php
require 'hd/View.php';
require '../db.php';
class IndexController extends View{
	public $template_dir='template';
	public $cache_dir='cache_oc';
	public function index()
	{
		$this->name='houdunwang';
		
		$this->display('index.html');
	}
}

$obj = new IndexController;
$obj->index();